<?php 
include('../../Connections/KRAPPERCON.php')  ?>
<table width="100%" border="1" rules="0" id="tbl_qcli2" class="tblSort">
<thead>
  <tr>
    <th>Editar</th>
    <th>Nombre</th>
    <th>Tipo Cliente</th>
    <th>Documento</th>
    <th>Telefono</th>
    <th>Celular</th>
    <th>mail</th>
    <th>Direccion</th>
    <th>Contacto</th>
    <th>Estado</th>
  </tr>
  </thead>
  <tbody>
  <?php


$query=" call sp_listacli('".getVal('cli')."')";

$res = $mysqli->query($query);
if ($res) {
		while($row4 = $res->fetch_assoc()) {
?>
 
  
  <tr>
    <td> <a href="#" class="a"><?php echo ($row4['ClientID'])  ?></a></td>
    <td><?php echo ($row4["Nombre"])  ?></td>
    <td><?php echo ($row4["CliTypeTxt"])  ?></td>
    <td><?php echo ($row4["ClientNIF"])  ?></td>
    <td><?php echo ($row4["ClientTelf"])  ?></td>
    <td><?php echo ($row4["ClientCel"])  ?></td>
    <td><?php echo ($row4["ClientMail"])  ?></td>
    <td><?php echo ($row4["ClientDirec"])  ?></td>
    <td><?php echo ($row4["ClientContac"])  ?></td>
        <td><?php echo ($row4["estado"])  ?></td>
  </tr>
  
  
<?php
 	}
$res->close();
$mysqli->next_result();

  }


?>
  </tbody>
</table>
<script type="text/javascript">
function clicks(id){
loadPage('Mantenimientos/MantCli.php',{ codcli : id , tip: 'ac' });	
}

$("#tbl_qcli2 tbody .a").each(function(){
			this.href = '#page/Mantenimientos/MantCli.php?codcli='+this.innerHTML;
});



</script>
